const querystring = require('querystring');
let obj = {
    keyWord: 'nodejs',
    name: 'huruji'
};
let str = querystring.stringify(obj);
console.log(str);

/**
 * 将对象反序列化为字符串
 * keyWord=nodejs&name=huruji
 */